import { createPinia } from 'pinia'
import useBase from './modules/base'
// 引入持久化插件
import piniaPluginPersist from 'pinia-plugin-persist'
const store = createPinia()
// 使用该插件
store.use(piniaPluginPersist);


export const useStore=()=>({
  id:'store',
  base:useBase()
})
// 导出
export default store